package com.myhome.feign;

import com.myhome.config.feign.OAuth2FeignConfig;
import com.myhome.dto.AdminBankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author QYiXin
 * @Date 2021 10 25 19 43
 **/
@FeignClient(value = "admin-service",configuration = OAuth2FeignConfig.class, path = "/adminBanks")
public interface AdminFeign {
    @GetMapping("/getAllAdminBanksDto")
    public List<AdminBankDto> getAdminBankDto();
}
